﻿using FreeSql.DataAnnotations;
using NPOI.OpenXmlFormats.Dml.Chart;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLine.Common;
using ZoneLine.Views;

namespace ZoneLine.Models
{
    public class QOP050StationResult : StationResultBase
    {
        private string _nutScanCode;
        private string _partType;
        private string _result;
        private float _tightenTorque;
        private float _tightenAngle;
        private float _pressPosition;
        private float _pressForce;
        private float _cycleTime;

        [DgColumnAttr("螺母批次码")]
        public string NutScanCode
        {
            get { return _nutScanCode; }
            set { SetProperty(ref _nutScanCode, value); }
        }
        [DgColumnAttr("产品型号")]
        public string PartType
        {
            get { return _partType; }
            set { SetProperty(ref _partType, value); }
        }
        [DgColumnAttr("结果")]
        public string Result
        {
            get { return _result; }
            set { SetProperty(ref _result, value); }
        }
        [DgColumnAttr("拧紧力矩")]
        public float TightenTorque
        {
            get { return _tightenTorque; }
            set { SetProperty(ref _tightenTorque, value); }
        }
        [DgColumnAttr("拧紧角度")]
        public float TightenAngle
        {
            get { return _tightenAngle; }
            set { SetProperty(ref _tightenAngle, value); }
        }
        [DgColumnAttr("压机位置")]
        public float PressPosition
        {
            get { return _pressPosition; }
            set { SetProperty(ref _pressPosition, value); }
        }
        [DgColumnAttr("压机压力")]
        public float PressForce
        {
            get { return _pressForce; }
            set { SetProperty(ref _pressForce, value); }
        }
        [DgColumnAttr("循环时间")]
        public float CycleTime
        {
            get { return _cycleTime; }
            set { SetProperty(ref _cycleTime, value); }
        }

        private float _threadLength;
        [DgColumnAttr("螺纹长度")]
        public float ThreadLength
        {
            get { return _threadLength; }
            set => SetProperty(ref _threadLength, value);
        }

        private string _springCushionScanCode;
        /// <summary>
        /// 弹簧下垫批次码
        /// addr:150
        /// </summary>
        //[DgColumnAttr("弹簧下垫批次码")]
        public string SpringCushionScanCode
        {
            get { return _springCushionScanCode; }
            set =>SetProperty(ref _springCushionScanCode, value);
        }

        private string _springScanCode;
        /// <summary>
        /// 弹簧批次码
        /// addr:182
        /// </summary>
        //[DgColumnAttr("弹簧批次码")]
        public string SpringScanCode
        {
            get { return _springScanCode; }
            set =>SetProperty(ref _springScanCode, value);
        }

        private string _nutScanCode2;
        /// <summary>
        /// 螺母批次码2
        /// addr:214
        /// </summary>
        [DgColumnAttr("螺母批次码2")]
        public string NutScanCode2
        {
            get { return _nutScanCode2; }
            set =>SetProperty(ref _nutScanCode2, value);
        }

        private string _componentScanCode;
        /// <summary>
        /// 合件批次码
        /// addr:246
        /// </summary>
        [DgColumnAttr("合件批次码")]
        public string ComponentScanCode
        {
            get { return _componentScanCode; }
            set => SetProperty(ref _componentScanCode, value);
        }

        private string _dustCapScanCode;
        /// <summary>
        /// 防尘盖批次码
        /// addr:278
        /// </summary>
        [DgColumnAttr("防尘盖批次码")]
        public string DustCapScanCode
        {
            get { return _dustCapScanCode; }
            set => SetProperty(ref _dustCapScanCode, value);
        }

    }
}
